﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="PersonTel.aspx.cs" Inherits="App_Input_PersonTel" Title="日常交流" %>
<%@ Register TagPrefix="shpm" TagName="TipBar" Src ="~/App/Input/SaleProcessTipBar.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script language="javascript">
    function addmessage(){
        return window.confirm("是否要登记？");
    }
    </script>
    <div>
    <div id="container">
                                <div id="title">
                                    <ul>
                                        <li id="tag1" style="display:none;">
                                            <asp:LinkButton ID="LinkButton1"  OnCommand="lnkTab_Command" CommandName="btn0" runat="server" Enabled="false" Width="105px" ><span>新建销售档案</span></asp:LinkButton>
                                        </li>
                                        <li id="tag2">
                                            <asp:LinkButton ID="LinkButton2" OnCommand="lnkTab_Command" CommandName="btn1"  runat="server"  CssClass="selectli"  OnClientClick="return false;"><span class="selectspan">销售记录</span></asp:LinkButton>
                                        </li>
                                        <li id="tag4">
                                            <asp:LinkButton ID="LinkButton4" OnCommand="lnkTab_Command" CommandName="btn3" runat="server" Width="95px"><span>权益人管理</span></asp:LinkButton>
                                        </li>
                                        <li id="tag3">
                                            <asp:LinkButton ID="LinkButton3" OnCommand="lnkTab_Command" CommandName="btn2" runat="server" ><span>会员管理</span></asp:LinkButton>
                                        </li>
                                        <li id="Li6">
                                            <asp:LinkButton ID="LinkButton9" OnCommand="lnkTab_Command" CommandName="btn6" runat="server" Width="105px"><span>入住资格审核</span></asp:LinkButton>
                                        </li>
                                        <li id="tag5">
                                            <asp:LinkButton ID="LinkButton5" OnCommand="lnkTab_Command" CommandName="btn4" runat="server"><span>会员入住</span></asp:LinkButton>
                                        </li>
                                    </ul>
                                </div>
                    <div id="content" class="content1">
                    <shpm:TipBar runat="server" ID="tipBar" />
                    <table class="table_border_line">
            <tr>
                <td align="left" colspan="6" style="height: 17px; width:100%">

                    <script language="javascript">
                        (new TitleBar('SearchBar1', '日常交流履历列表')).showBar();
                    </script>

                </td>
            </tr>
            <tr>
            <td>
                <asp:GridView ID="viewSrhRst" runat="server" AutoGenerateColumns="False" CssClass="GridView_table"
                    DataKeyNames="SaleVisitingId" OnSelectedIndexChanged="viewSrhRst_SelectedIndexChanged" OnPageIndexChanging="viewSrhRst_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderText="详细编号" Visible="False">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("SaleVisitingId") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemStyle CssClass="GridView_item_left" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("SaleVisitingId") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="NewDate" DataFormatString="{0:yyyy/MM/dd}" HtmlEncode="False" HeaderText="登记日期" > 
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" Width="15%" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="联系方式" DataField="SaleVisitingTypeChar">
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Memo" HeaderText="信息">
                            <ItemStyle CssClass="GridView_item_left" />
                            <HeaderStyle CssClass="GridView_head_grayblue" Width="70%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="删除" ShowHeader="False">
                            <ItemStyle CssClass="GridView_item_center" />
                            <HeaderStyle CssClass="GridView_head_grayblue" />
                            <ItemTemplate>
                                <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Select"
                                    ImageUrl="~/images/delete.jpg" Text="删除" OnClientClick="return confirm('确定删除吗？')" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
            </tr>
        </table>
        <table class="table_border_line">
            <tr>
                <td align="left" colspan="6" style="height: 17px; width:100%">

                    <script language="javascript">
                        (new TitleBar('SearchBar', '日常交流')).showBar();
                    </script>

                </td>
            </tr>
        </table>
        <table class="table_border_line" style="background: ffffff">
            <tr>
                <td style="height:25px">销售编号</td>
                <td>
                    <asp:Label ID="lblProcId" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td style="height:25px">员工姓名</td>
                <td>
                    <asp:Label ID="lblEmpId" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td style="height:25px">客户姓名
                </td>
                <td>
                    <asp:Label ID="lblName" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td style="height: 25px">联系电话
                </td>
                <td>
                    <asp:Label ID="lblTel" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td style="height:25px">联系地址
                </td>
                <td>
                    <asp:Label ID="lblAddress" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td style="height: 25px">邮箱地址
                </td>
                <td >
                    <asp:Label ID="lblMail" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td style="height:25px">联系方式
                </td>
                <td>
                    <asp:DropDownList ID="cmbType" runat="server" DataTextField="Content" DataValueField="DictNo">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td>交流内容
                </td>
                <td>
                    <asp:TextBox ID="txtMemo" runat="server" MaxLength="255" Rows="5" TextMode="MultiLine"
                        Width="370px"></asp:TextBox></td>
            </tr>
        </table>
        <table class="table_border_line">
        <tr><td style="text-align:center ; height: 22px;">
                    <asp:Button ID="Button1" runat="server" Text="保存" OnClick="Button1_Click" Width="75px" CssClass="Button" OnClientClick="return addmessage();" />
            &nbsp; &nbsp;
            <asp:Button ID="btnBack" runat="server" Text="返回" OnClick="btnBack_Click" Width="75px" CssClass="Button" /></td></tr>
        </table>
        </div>
        </div>
    </div>
</asp:Content>
